Skip to content

Conversation

@ychartois
Copy link
Contributor

Task

https://digitalcrew.teamwork.com/#tasks/17377853

When a PR is open, I'd like the all PR description to be past in the task comment, as most of customer facing people don't have access to Github
It also update the task tag to have a high vision of the flow

Screencast

Peek 2020-11-19 18-29

[$pr_url]($pr_url)

---
${pr_body//###/####}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So replace all hading level 3 for level 4 headings isn't it?
Why? Just curious

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, it's getting anything from 3, 4, 5 to 4,5..

I hope we are not using 2... And just because lvl 3 looks good in github, but way too big in Projects 😊

@toffentoffen
Copy link
Contributor

LGTM. Great job.
BTW have you tried to run it locally at least the tests? https://github.com/Teamwork/github-sync/blob/master/CONTRIBUTING.md
For instance:
act pull_request -e tests/events/pull_request_opened.json

@ychartois
Copy link
Contributor Author

Yop, I tested it locally, it's how I made the gif and the video 😊 I also changed the body in open test to have a complex markdown body in there 😊

Copy link
Contributor

@toffentoffen toffentoffen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ychartois ychartois merged commit 19a8da4 into master Nov 20, 2020
@ychartois ychartois deleted the yannig-hackathon branch November 20, 2020 15:48
@miguelbemartin
Copy link
Contributor

@ychartois arrived late here. Just some questions:

  • What happens if the tag is not created in Projects?
  • Regarding the tags: maybe we can add an option to the settings of the action and only if you enable this option, you get the "tags" in your tasks. Not everyone is using one task for one PR, so it's really specific for your workflow.

"number": 1,
"pull_request": {
"body": "This is the body of the PR. https://xxxx.teamwork.com/#/tasks/123 https://xxx.teamwork.com/#/tasks/456",
"body": "### Task\r\n- [Implement Smart Inbox Settings](https://digitalcrew.teamwork.com/#tasks/21419431)\r\n - Implement `<ConditionsBuilder/>`\r\n - Implement `<ConditonRow/>`\r\n\r\n### Screencap\r\n#### `<ConditionsBuilder/>`\r\n![conditionsbuilder](https://user-images.githubusercontent.com/621330/52656284-abc69580-2efe-11e9-89af-9b0dab68c494.gif)\r\n\r\n#### `<ConditonRow/>`\r\n- UI Explanation\r\n![conditionrow](https://user-images.githubusercontent.com/621330/52656775-bb92a980-2eff-11e9-8492-4b550b584a1e.png)\r\n- Blank State\r\n![blankconditionrow](https://user-images.githubusercontent.com/621330/52656835-e2e97680-2eff-11e9-994e-1ff426a6b7e9.png)\r\n- Empty State for not provided values\r\n - Tags\r\n ![notags](https://user-images.githubusercontent.com/621330/52656880-fa286400-2eff-11e9-8206-fee059f08356.png)\r\n - Companies\r\n ![nocompanies](https://user-images.githubusercontent.com/621330/52656897-04e2f900-2f00-11e9-82b4-88e7f58b05d7.png)\r\n- Validation Errors\r\n - Tags\r\n ![notselectedtagerror](https://user-images.githubusercontent.com/621330/52656942-2643e500-2f00-11e9-9d06-7ec813e35c2b.png)\r\n - Companies\r\n ![notselectedcompanyerror](https://user-images.githubusercontent.com/621330/52656955-2e038980-2f00-11e9-8ede-5738fb0fdd74.png)\r\n- Row Error (loading data error)\r\n![conditionrowunexpectederror](https://user-images.githubusercontent.com/621330/52656976-3b207880-2f00-11e9-9a9f-f01c3c417715.png)\r\n- All Possible Condition Rows\r\n![allpossibleconditions](https://user-images.githubusercontent.com/621330/52657021-5be8ce00-2f00-11e9-91e1-910730e4bef6.png)",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a public repository, we shouldn't be exposing our internal URLs. I would create a generic JSON just for testing purposes.

local -r tag_name=$1

if [ "$ENV" == "test" ]; then
log::message "Test - Simulate request. Task ID: $TEAMWORK_TASK_ID - Tag: ${tag_name//\"/}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is for testing, I would add to the message something like "Removed tag".

local -r tag_name=$1

if [ "$ENV" == "test" ]; then
log::message "Test - Simulate request. Task ID: $TEAMWORK_TASK_ID - Tag: ${tag_name//\"/}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is for testing, I would add to the message something like "Added tag".

@miguelbemartin
Copy link
Contributor

I've also noted that titles are quite big in Teamwork. We should probably make smaller.

This was referenced Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants